package com.ruoyi.app.controller;

import com.ruoyi.app.service.PromotionService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: LachineController
 * @Author: chenJie
 * @Description:
 */
@RestController
@RequestMapping("/api/system/promotion")
public class PromotionController {
    @Autowired
    private PromotionService promotionService;


    @GetMapping("/get")
    @Anonymous
    public AjaxResult promotionPerson(@RequestParam("userId") Integer userId) {
        return promotionService.getPromotion(userId);
    }
}
